angular.module('new', []).controller('namesCtrl', function ($scope) {
    $scope.greeting = {text: 'hello'};
});

function HelloController($scope) {
    $scope.greeting = {text: "hello"};
}